package cn.yougou.vo;

import cn.yougou.pojo.YgCommoditySpecification;

import java.io.Serializable;
import java.util.List;

public class YgCommoditySpecificationVo implements Serializable {

    /**
     * 商品规格名称
     */
    private String specification;

    private List<YgCommoditySpecification> children;

    public YgCommoditySpecificationVo() {
    }

    public YgCommoditySpecificationVo(String specification) {
        this.specification = specification;
    }

    public YgCommoditySpecificationVo(String specification, List<YgCommoditySpecification> children) {
        this.specification = specification;
        this.children = children;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public List<YgCommoditySpecification> getChildren() {
        return children;
    }

    public void setChildren(List<YgCommoditySpecification> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "YgCommoditySpecificationVo{" +
                "specification='" + specification + '\'' +
                ", children=" + children +
                '}';
    }
}
